#include <iostream>
using namespace std;
int main()
{
    int arr[3][3]={{12,32,43},{34,32,123},{123,4,31}};
    int s=0;
    for(int i=0;i<3;i++){
        for(int j=0;j<3;j++){
            s+=arr[i][j];
        }
        cout<<s<<endl;
    }
    return 0;
}